package com.boolib.shopweb.web;

import com.boolib.bo.ShopSkuBo;
import com.boolib.commons.entity.ServerResponse;
import com.boolib.service.IShopSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SkuAddController {




    @Autowired
    private IShopSkuService iShopSkuService;



    @PostMapping("/skuadd")
    public ServerResponse add(@RequestBody ShopSkuBo shopSkus){

        return  ServerResponse.createBySuccess(iShopSkuService.addSku(shopSkus.getShopSkus()));
    }

}
